#include "zyglabel.h"

ZygLabel::ZygLabel(QString str,QWidget* parent):QLabel (str,parent){
    this->setFrameShape (QFrame::Box);
    this->setStyleSheet("border-width: 1px;border-style: solid;border-color: rgb(255, 170, 0);");
    this->setFont(ZygFont::getFont());
    this->setAlignment(Qt::AlignCenter);
}
ZygLabel::~ZygLabel(){}

void ZygLabel::mousePressEvent(QMouseEvent *ev){
    emit clicked();
}
void ZygLabel::mouseReleaseEvent(QMouseEvent *ev){
    emit release();
}
